package tech.aistar.prj.model.pojo;

import java.io.Serializable;
import java.util.Date;

public class User implements Serializable {

    private Integer id;
    private String username;
    private String password;
    private Integer power;
    private Date birthday;

    public User() {
    }

    public User(Integer id, String username, String password, Integer power, Date birthday) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.power = power;
        this.birthday = birthday;
    }




    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        //System.out.println("setId...");
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        //System.out.println("setUsername...");
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getPower() {
        return power;
    }

    public void setPower(Integer power) {
        this.power = power;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("User{");
        sb.append("id=").append(id);
        sb.append(", username='").append(username).append('\'');
        sb.append(", password='").append(password).append('\'');
        sb.append(", power=").append(power);
        sb.append(", birthday=").append(birthday);
        sb.append('}');
        return sb.toString();
    }
}